{extend name="layout/layout" /}

{block name="content"}
<style>
     .table-bordered>thead>tr>td, .table-bordered>tbody>tr>td, .table-bordered>tfoot>tr>td{
        line-height: 70px;
     }
</style>
<div class="row">
    <div class="col-lg-12">
        <div class="box box-success">
            <div class="box-header with-border">
                {include file="common:searcharea2" /}
                <div class="box-tools pull-right">
                    <a href="{:url('admin/'.strtolower($model).'/add')}" class="btn btn-primary btn-sm"><i class="fa  fa-plus"></i> 添加</a>
                </div>
            </div>
            <div class="box-body ">
                <form class="js-ajax-form" method="post">
                    <div class="table-responsive">
                        <table class="table table-bordered table-hover dataTable">
                            <thead>
                                <th><input type="checkbox"></th>
                                <th>头像</th>
                                <th>姓名</th>
                                <th>性别</th>
                                <th>出生年月</th>
                                <th>身份证号</th>
                                <th>致贫原因</th>
                                <th>加入时间</th>
                                <th>帮扶人</th>
                                <th>操作</th>
                            </thead>
                            <tbody>
                            {foreach $datas as $data}
                            <tr>
                                <td><input type="checkbox" class="js-check" name="ids[]" value="{$data->id}" data-yid="js-check-y" data-xid="js-check-x"></td>
                                <td><img src="{$data->member->avatar}" alt="" style="width: 70px;height: 70px;"></td>
                                <td>{$data->member->name}</td>
                                <td>{$data->member->gender}</td>
                                <td>{$data->member->birthday}</td>
                                <td>{$data->member->identityNumber}</td>
                                <td>{$data->povertyreason}</td>
                                <td>{$data->createDate}</td>
                                <td>{$data->memberaid->name}</td>
                                <td>
                                    <a href="{:url('admin/'.strtolower($model).'/edit', ['id' => $data->id])}" class="btn btn-info btn-xs">编辑</a>
                                </td>
                            </tr>
                            {/foreach}
                            </tbody>
                        </table>
                    </div>
                </form>
            </div>
            <div class="box-footer">
                {include file="common:paginate" /}
            </div>
        </div>
    </div>
</div>
{/block}

{block name="pagescript"}
{/block}